import request from '@/utils/request'
var group_name = 'record'
export default {
getList(page) {
return request({
url: `/${group_name}/getList`,
method: 'post',
data:page
})
},
add(dataList) {
return request({
url: `/${group_name}/add`,
method: 'post',
data: dataList
})
},
delete(id) {
return request({
url: `/${group_name}/delete/${id}`,
method: 'delete'
})
},
view(id) {
return request({
url: `/${group_name}/view/${id}`,
method: 'get'
})
},
update(dataList) {
return request({
url: `/${group_name}/update`,
method: 'put',
data: dataList
})
}
}